<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${plugin.name if t == 'plug' else item.name} - PyHMon Web Interface</title>
</head>
<body>
    <h2>${plugin.nodes.name if t == 'plug' else item.plugin.name} / ${plugin.name if t == 'plug' else item.name}</h2>
    <div py:if="t == 'plug'">
    <form py:attrs="{'action':'graphic'} if numeric else {'action':'tablic'}"  method="post">
	<input type="hidden" name="plugid" value="${plugin.plugin_id}"/>
	Start: <input type="text" name="startTime" value=""/><br />
	End: <input type="text" name="endTime" value=""/><br />
	<div py:if="not numeric">
	Limit: <input type="text" name="limit" value=""/><br />
	</div>
	<br /><input type="submit" name="submit" value="Go!"/><br />
	<input type="submit" name="year" value="Last year"/>
	<input type="submit" name="month" value="Last month"/>
	<input type="submit" name="week" value="Last week"/>
	<input type="submit" name="day" value="Last day"/>
	<input type="submit" name="hour" value="Last hour"/>
    </form></div>
    <div py:if="t == 'item'">
    <form py:attrs="{'action':'graphic'} if numeric else {'action':'tablic_item'}"  method="post">
	<input type="hidden" name="itemid" value="${item.item_id}"/>
	Start: <input type="text" name="startTime" value=""/><br />
	End: <input type="text" name="endTime" value=""/><br />
	<div py:if="not numeric">
	Limit: <input type="text" name="limit" value=""/><br />
	</div>
	<br /><input type="submit" name="submit" value="Go!"/><br />
	<input type="submit" name="year" value="Last year"/>
	<input type="submit" name="month" value="Last month"/>
	<input type="submit" name="week" value="Last week"/>
	<input type="submit" name="day" value="Last day"/>
	<input type="submit" name="hour" value="Last hour"/>
    </form></div>
    Time format: 2008.12.05 13:45
</body>
</html>
